package com.etc.model;

import lombok.Data;

@Data
public class Result<T> {

    // 200  成功    201验证码错误
    private Integer status;
    private String message;
    private T data;


    public Result ok(T t){
        Result<T> result = new Result<>();
        result.setData(t);
        result.setMessage("success");
        result.setStatus(200);
        return result;
    }
}
